﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for VYC17Controller
    /// </summary>
    public class VYC17Controller
    {
        private static VYC17BO _vyc17Bo;
        public VYC17Controller()
        {
            _vyc17Bo = new VYC17BO();
        }
        public List<ModelVYC17> GetAllList()
        {
            return _vyc17Bo.GetAllList();
        }
        public int AddData(ModelVYC17 model)
        {
            return _vyc17Bo.AddData(model);
        }
        public int EditData(ModelVYC17 model)
        {
            return _vyc17Bo.EditData(model);
        }
        public int DeleteData(ModelVYC17 model)
        {
            return _vyc17Bo.DeleteData(model);
        }
        public List<ModelVYC17> GetById(int id)
        {
            return _vyc17Bo.GetById(id);
        }
        public List<ModelVYC17> CheckLogin(ModelVYC17 info)
        {
            return _vyc17Bo.CheckLogin(info);
        }
        public List<ModelVYC17> GetByUsername(string username)
        {
            return _vyc17Bo.GetByUsername(username);
        }
    }
}